home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2001 / MacHack 2001.toast / pc / The Hacks / Airport Radar™ / Source / RadarView.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-06-23  |  629 b   |  42 lines

  1.  
  2.  
  3. #include <LOffscreenView.h>
  4. #include <LPeriodical.h>
  5.  
  6. class RadarView : public LOffscreenView, public LPeriodical
  7. {
  8.     public:
  9.         enum { class_ID = FOUR_CHAR_CODE('RdOf') };
  10.     
  11.         RadarView(
  12.             LStream *    inStream);
  13.         
  14.         virtual
  15.         ~RadarView();
  16.         
  17.         virtual void
  18.         DrawSelf();
  19.  
  20.         virtual    void
  21.         SpendTime(
  22.             const EventRecord &    inMacEvent);
  23.  
  24.         void
  25.         UpdateLocation();
  26.  
  27.         virtual void
  28.         FinishCreateSelf();
  29.     
  30.     private:
  31.         PicHandle        mRadarMapPict;
  32.         UInt32            mLastLocationUpdateTime;
  33.         UInt32            mLastSweepUpdateTime;
  34.         double            mSweepAngle;
  35.         
  36.         Point            mCenterOfWindow;
  37.  
  38.         Point            mCurrentLocation;
  39.         Point            mPreviousLocation;
  40. };
  41.  
  42.